// main.js
import Vue from 'vue'
import router from './router/index.js'
import App from './App.vue'
import Antd from 'ant-design-vue'

import 'ant-design-vue/dist/antd.css'
import '@/style/systemClass.scss'
// ...
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import VxeUI from 'vxe-pc-ui'
import 'vxe-pc-ui/lib/style.css'
VXETable.setConfig({
  // 恢复老版本校验样式
  cellVaildMode: 'obsolete',
  // 恢复窗口默认显示确认按钮
  mode: {
    showConfirmButton: true
  },
  // 恢复默认启用虚拟滚动
  table: {
    scrollX: {
      enabled: true,
      gt: 1 // 大于10列开启虚拟滚动
    },
    scrollY: {
      enabled: true,
      gt: 30 // 大于30行开启虚拟滚动
    }
  }
})

Vue.use(VXETable)
Vue.use(VxeUI)

Vue.use(Antd)

new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app')
